String#match并在匹配成功时Regexp#match返回MatchData:
String#match
Regexp#match
MatchData
"".match(//) # => # //.match("") # => # //.match(:"") # => #
但Symbol#match返回匹配位置(如String#=~):
Symbol#match
String#=~
:"".match(//) # => 0
为什么Symbol#match表现不一样?有用例吗?